import { ck_sn, add_ck_col, reload_col, loc } from 'sui';

const fix_col = () => {
    return [
        {sn: "sn", name: loc("l_488"), tp: "string"},
    ];
};

const load_col = (mod, setCol) => {
    const fix = fix_col();
    reload_col(null, v => setCol(v), mod, fix);
};

const get_ck = (cur, main, col) => {
    const ret = {
        sn : v => ck_sn(v, cur, main),
    };

    add_ck_col(ret, col);

    return ret;
};

export {get_ck, load_col, fix_col };
